package model.backoffice

import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonDecoder, JsonEncoder}

case class JsonGeneralFields(offset: Int, limit: Int, size: Int, all: Int)

object JsonGeneralFields {
  given JsonDecoder[JsonGeneralFields] = DeriveJsonDecoder.gen[JsonGeneralFields]
  given JsonEncoder[JsonGeneralFields] = DeriveJsonEncoder.gen[JsonGeneralFields]
}
